<?php
require_once('libs/Zend/Soap/Client.php');

class webservices extends MX_Controller
{
    public function __construct()
    {
        parent::__construct();
    }
    
    public function index()
    {
         
        $serverLink = site_url('api/soap');
        $email = 'khoa.bui@sutrixmedia.com';
        $options = array(
            'location' => $serverLink  , 
            'uri' => $serverLink
        );
       //echo $serverLink; die;
        try  {
            $client = new SoapClient(null, $options);
            var_dump($client->abc());
          //  $client = new Zend_Soap_Client(null, $options);
           // var_dump($client->abc());
            //$result = $client->searchManager(0, 10, 'kien');
            //$result = $client->getFullUser($email);
            //$result = $client->getBlockUser(0, 2);
            echo 1;
           // print_r($result);
        } catch (SoapFault $s) {
            echo '111';
        die('ERROR: [' . $s->faultcode . '] ' . $s->faultstring);
        } catch (Exception $e)  {
            echo '222';
        die('ERROR: ' . $e->getMessage());
        } 
    }
}